<?php
	//this is connect to the db function
	//
	function db_connect() {
		$result = new mysqli('localhost', 'bm_user', 'password', 'bookmarks');

		if (!$result) {
			throw new Exception("Could not connect to database server.");
			
		} else {
			return $result;
		}
	}